import request from '@/utils/request'

// 终端列表
export function findPageList(data) {
    return request({
        url: '/terminal/findPageList',
        method: 'get',
        params: data
    })
}
// 终端解绑
export function unbindApi(data) {
    return request({
        url: '/terminal/unbind',
        method: 'post',
        data
    })
}
// 终端详情
export function PosDetail(data) {
    return request({
        url: '/terminal/getPosDetail',
        method: 'get',
        params: data
    })
}

export function findCanallotBack(data) {
    return request({
        url: '/posAssign/findCanallotBack',
        method: 'get',
        params: data
    })
}
export function findCanallotBackCount(data) {
    return request({
        url: '/posAssign/findCanallotBackCount',
        method: 'get',
        params: data
    })
}
export function allotBackApply(data) {
    return request({
        url: '/posAssign/allotBackApply',
        method: 'post',
        data
    })
}
export function findByCanAllot(data) {
    return request({
        url: '/posAssign/findByCanAllot',
        method: 'get',
        params: data
    })
}
export function allotApi(data) {
    return request({
        url: '/posAssign/allot',
        method: 'post',
        data
    })
}
export function findByPosDeposit(data) {
    return request({
        url: '/terminal/findByPosDeposit',
        method: 'get',
        params: data
    })
}
export function findByPosDepositCount(data) {
    return request({
        url: '/terminal/findByPosDepositCount',
        method: 'get',
        params: data
    })
}
export function findByTargetAndClassesId(data) {
    return request({
        url: '/marktingConfig/findByTargetAndClassesId',
        method: 'get',
        params: data
    })
}
//  合利宝活动变更
export function posDepositConfig(data) {
    return request({
        url: '/terminal/posDepositConfig',
        method: 'post',
        data
    })
}
//  乐刷活动变更
export function posMarketingChange(data) {
    return request({
        url: '/terminal/posMarketingChange',
        method: 'post',
        data
    })
}
export function appStatisPosAct(data) {
    return request({
        url: '/terminal/appStatisPosAct',
        method: 'get',
        params: data
    })
}
export function findPageListCount() {
    return request({
        url: '/terminal/findPageListCount',
        method: 'get'
    })
}
export function findByCanAllotCount(data) {
    return request({
        url: '/posAssign/findByCanAllotCount',
        method: 'post',
        data
    })
}
// 查询可设置sim卡机具列表
export function findSetPosSimList(data) {
    return request({
        url: '/terminal/findSetPosSimList',
        method: 'post',
        data
    })
}
// 查询流量卡活动详情
export function findSetPosFeeList(data) {
    return request({
        url: '/terminal/findSetPosFeeList',
        method: 'post',
        data
    })
}
// 查询流量卡活动列表
export function findSetPosSimAct(data) {
    return request({
        url: '/terminal/findSetPosSimAct',
        method: 'get',
        data
    })
}
// 获取扣费天数数据
export function getSimConfigById(data) {
    return request({
        url: '/terminal/getSimConfigById',
        method: 'get',
        params: data
    })
}
// 批量设置sim卡活动
export function setPosSimDeduct(data) {
    return request({
        url: '/terminal/setPosSimDeduct',
        method: 'post',
        data
    })
}
// 查询可设置入网费率列表
export function terminalFeeInterval(data) {
    return request({
        url: '/terminal/terminalFeeInterval',
        method: 'post',
        params:data
    })
}
// 批量设置入网费率
export function posFeeConfigBatch(data) {
    return request({
        url: '/terminal/posFeeConfigBatch',
        method: 'post',
        data
    })
}
// 获取营销类别
export function findByAgencySource(data) {
    return request({
        url: '/terminal/findByAgencySource',
        method: 'post',
        data
    })
}
// 获取SIM卡扣费标准
export function getSimConfig(data) {
    return request({
        url: '/terminal/getSimConfig',
        method: 'post',
        params:data
    })
}
// 调拨记录
export function allotRecord(data) {
    return request({
        url: '/posAssign/allotRecord',
        method: 'get',
        params: data
    })
}
// 调拨明细
export function allotDetail(data) {
    return request({
        url: '/posAssign/allotDetail',
        method: 'get',
        params: data
    })
}
// 回拨记录
export function allotBackRecordByTarget(data) {
    return request({
        url: '/posAssign/allotBackRecordByTarget',
        method: 'get',
        params: data
    })
}
// 回拨记录
export function allotBackRecordBySource(data) {
    return request({
        url: '/posAssign/allotBackRecordBySource',
        method: 'get',
        params: data
    })
}
